package apt.action;

import java.util.List;

import apt.bean.OrderBean;
import apt.dao.OrderDao;

import com.opensymphony.xwork2.ActionSupport;

public class OrderAction  extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private OrderBean orderBean;
	private OrderDao orderDao;
	private List<OrderBean> listOrder;
	public OrderAction() {
		orderDao = new OrderDao();
	}
	public String showListOrder()
	{	
		try {
			listOrder = orderDao.getAllOrder();
		} catch (Exception e) {
			return ERROR;
		}
		return SUCCESS;
	}
	
	
	public OrderBean getOrderBean() {
		return orderBean;
	}
	public void setOrderBean(OrderBean orderBean) {
		this.orderBean = orderBean;
	}
	public OrderDao getOrderDao() {
		return orderDao;
	}
	public void setOrderDao(OrderDao orderDao) {
		this.orderDao = orderDao;
	}
	public List<OrderBean> getListOrder() {
		return listOrder;
	}
	public void setListOrder(List<OrderBean> listOrder) {
		this.listOrder = listOrder;
	}
	
	
}
